
<?php 

include('../Connections/KRAPPERCON.php');
include('../Connections/Accesos.php');

?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <input type="button" name="btn_buskx" id="btn_buskx" onClick="showKardex()" value="Buscar">   </td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Referencia:</td>
    <td>
      <input name="t_refkdx" type="text" id="t_refkdx" size="30" />
    </td>
  </tr>
  <tr>
    <td>Articulo :</td>
    <td>
      <input name="t_kx_codart" type="text" id="t_kx_codart" size="20">  </td>
  </tr>
  <tr>
    <td>Almacen :</td>
    <td>
      <select name="cbo_kx_alm" id="cbo_kx_alm">
      <?php
	  $combo = '';
	  include ('../Query_Min/getAlmacenes.php');
	  echo $combo;
      ?>
      </select>   </td>
  </tr>
  <tr>
    <td>Fecha de Movimiento :</td>
    <td>
      <input type="text" name="t_kx_fini" class="tcal"  value="<?php echo $hoy;?>" id="t_kx_fini">
    &nbsp;a&nbsp;
    <input type="text" name="t_kx_ffin"  class="tcal" id="t_kx_ffin">   </td>
  </tr>
  <tr>
    <td>Tipo de Movimiento :</td>
    <td>
      <select name="cbo_kx_clase" id="cbo_kx_clase">
      <option value="">Todos</option>
      <?php 
		$cladoc = 'MG';
		include('../Query_Min/getClaDocs.php');
		?>      
      </select>
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2"><div id="d_kardex"></div></td>
  </tr>
</table>
<script type="text/javascript">
function showKardex(){
$('#d_kardex').loadx('Consultas/Opers/queryKardex.php',{
	t_kx_codart : GEBI('t_kx_codart').value,
	cbo_kx_alm : GEBI('cbo_kx_alm').value,
	t_kx_fini : GEBI('t_kx_fini').value,
	t_kx_ffin : GEBI('t_kx_ffin').value,
	t_refkdx : GEBI('t_refkdx').value,
	cbo_kx_clase : GEBI('cbo_kx_clase').value
});
}
</script>
